package com.fit.dao.classes;

import java.util.Date;
import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.classes.Classes;
import com.fit.entities.user.User;

public interface ClassesDAO {

	@CommitAfter
	public boolean save(Classes newClasses);

	@CommitAfter
	public boolean delete(Classes classes);

	@CommitAfter
	public boolean update(Classes classes);

	public List<Classes> findAll();

	public Classes findByIdClassesAndBeginingDate(int classId, Date beginingDate);

	public Classes findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
	
}
